using IcsSEMCtrl.Com.FieldBus;
using System;
namespace EzControl.Driver.MelsecNet
{
	public class CMelsecNetConnection : DriverConnectionString
	{
		protected override object GetValue(string sName, string sValue)
		{
			object result = null;
			switch (sName)
			{
			case "CHANNEL_NO":
			case "STATION_NO":
			case "MODE":
				result = Convert.ToInt32(sValue);
				break;
			case "MONITOR_INTERVAL":
				result = Convert.ToInt32(sValue);
				break;
			case "X_START_ADDR":
			case "X_END_ADDR":
			case "Y_START_ADDR":
			case "Y_END_ADDR":
			case "SB_START_ADDR":
			case "SB_END_ADDR":
			case "SW_START_ADDR":
			case "SW_END_ADDR":
			case "B_START_ADDR":
			case "B_END_ADDR":
			case "W_START_ADDR":
			case "W_END_ADDR":
			case "WW_START_ADDR":
			case "WW_END_ADDR":
			case "WR_START_ADDR":
			case "WR_END_ADDR":
				result = Convert.ToInt32(sValue);
				break;
			}
			return result;
		}
	}
}
